@import "constants";
@import "init";

.header{
    width:100%;
    height:$navHeight;
    background: #3a3a3a;
    position: fixed;
    left:0;
    top:0;
    right: 0;
    z-index: 100;
    .container{
        width: $pageWidth;
        height:auto;
        margin:0 auto;
        font-size: larger;
        .logo-box{
            background: url("https://www.bufanbiz.com/static/build/images/new-normal-logo.png" )no-repeat;
            width:150px;
            height:$navHeight;
            margin-top:10px;
            float: left;
            a{
                display: block;
                height: 100%;
                width: 100%;
            }
        }
        .nav{
            margin-left: 68px;
            float: left;
            position: relative;
            li{
                float: left;
                margin-right:80px;
                line-height: $navHeight;
                height:60px;
                &.active{
                    border-bottom: 5px solid #E63929;
                    padding:0 23px;
                    background: #000;
                }
                a{
                    display: block;
                    color: #fff;
                    height: 100%;
                }
            }

        }
        //寻求报道
        .help{
            float: left;
            margin-left: 60px;
            margin-top: 12px;
            color: white;
            font-size: 15px;
            border: 1px solid;
            border-radius: 8px;
            padding:8px 8px;
            position: relative;
            &:hover{
                background: #e63929;
            }
            i{
                font-size: 20px;
            }
            a{
                color: white;
                font-size: larger;
            }
        }
        //登录注册
        .auth-box{
            float:right;
            line-height: $navHeight;
            height: $navHeight;
            color: white;
            position: relative;
            i{
                font-size: 20px;
            }
            a{
                color:#fff;
                font-size: 15px;
            }
            .user-more-box{
                background: #fff;
                width: 140px;
                //height:90px;
                position: absolute;
                box-shadow: 0 3px 4px #ccc;
                border-radius: 5px;
                top:65px;
                right:50%;
                margin-right: -70px;
                font-size:14px;
                z-index: 2;
                display: none;
                .triangle{
                    //transparent是代表透明度
                    border:solid transparent;
                    border-width: 10px;
                    border-bottom-color:#fff;
                    display: block;
                    width:0;
                    height:0;
                    margin-top: -20px;
                    margin-left: 60px;
                }
                a {
                    text-align: center;
                    height: 44px;
                    //!important可以增加权重值
                    color: #6d85ac !important;
                    display: block;
                    line-height: 44px;
                }
            }
        }
    }
}